<?PHP
$link = mysql_connect("localhost","root","");
mysql_query ("set character_set_client='utf8'"); 
mysql_query ("set character_set_results='utf8'"); 
mysql_query ("set collation_connection='utf8_general_ci'"); 
mysql_select_db("gamedb");

$query = "SELECT * FROM stage WHERE User='$_POST[User]'";
$results = mysql_query($query)or die(mysql_error());

$User = "";

while($line = mysql_fetch_assoc($results)) {
	 $User.=$line["User"]."\n";
}
echo($User);
mysql_close($link);

?>